All Questions
6 questions
1vote
2answers
1kviews
Using Factory Design Pattern in Rest Controller of Spring
I used factory design pattern to identify the service according to the enum that comes from the api uri as request param. Everything seems okay according to me but cannot be sure if I used it right. <...
3votes
1answer
866views
Building an email generator using abstract factory pattern
I'm trying to build a customer email generator in java using the abstract factory pattern. I understand how to use the factory method pattern; however, I'm a bit confused about the abstract factory ...
-3votes
1answer
53views
Some way to create factory pattern for spring application [closed]
I created this code ...
2votes
2answers
985views
Implementation of Abstract Factory pattern with different vendors for product
I am studying about design principles and design patterns. I have implemented an Abstract factory pattern as per my understanding. The scenario I have considered is as follows : There is an ...
3votes
1answer
1kviews
Event Aggregator Pattern Decoupling
I have an Android application that is using an EventBus architecture with publishing and subscribing events. Usually this is ...
3votes
2answers
984views
Abstract factory pattern implemented in Java
I need a code review on my Abstract Factory pattern written in Java. Find the two enums AnimalType.java and DietType.java below. ...